package kr.hkit.powerjava.chapter05.work;

import java.util.Scanner;

public class Programming04 {
	public static void main(String[] args){
		int radius;
		int height;
		double volume;
		final double PI = 3.14;
		
		Scanner input = new Scanner(System.in);
		System.out.print("원기둥 밑면의 반지름을 입력하세요 : ");
		radius = input.nextInt();
		System.out.print("높이를 입력하세요 :");
		height = input.nextInt();
		
		volume = PI*radius*radius*height;
		
		System.out.println("원기둥의 부피는 "+ volume +" 입니다.");
	}
}
